package com.my.result;

import java.io.Serializable;

/**
 * @author : jhxue
 * @date : 2023/1/5 16:39
 */
public enum ResultCode implements Serializable {

    SUCCESS(0, "成功"),
    FAIL(1, "失败"),
    ;

    private Integer code;

    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return "ResultCode{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }

}
